<style lang="scss" scoped>
  .newIconBtn {
    width: 30px;
    float: left;
    padding: 0 10px;
  }
</style>
<template>
  <Button class="" type="text" @click="clickBtn"  v-btnAuth="{code: this.authCode}">
    <Tooltip  placement="bottom" :content="text" :delay="500" transfer>
      <Icon :type="iconType" :size="iconSize"></Icon>
    </Tooltip>
  </Button>
</template>
<script>
  export default {
    name: 'hyIconBtn',
    data () {
      return {
      };
    },
    props: {
      text: String,
      iconType: String,
      iconSize: String,
      authCode: String
    },
    created () {},
    methods: {
      clickBtn () {
        this.$emit('click');
      }
    }
  };
</script>
